package com.niiwoo.civet.trade.enums;

import com.niiwoo.tripod.provider.exception.NoSuchEnumValueException;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ProjectLendAbnormityNodeEnum {

	PROJECT_STATUS((byte) 1, "标的状态异常"),

	PROJECT_AMOUNT((byte) 2, "标的金额异常"),

	BORROWER((byte) 3, "借款人异常"),
	
	BUILD_TC_LEND_ORDER((byte) 4, "生成交易中心放款订单异常"),
	
	BUILD_AC_LEND_ORDER((byte) 5, "生成账户中心放款订单异常"),

	CALL_BANK((byte) 6, "调用银行存管异常"),
	
	QUERY_TRANSATION((byte) 7, "查询交易结果异常"),

	BANK_BACK_FAIL((byte) 8, "银行存管返回失败"),

	UPDATE_AC_ORDER_STATUS((byte) 9, "更新账户订单状态异常"),

	UPDATE_PROJECT_STATUS((byte) 10, "更新标的状态异常"),

	BILL((byte) 11, "账单处理异常"),

	FADADA_SIGN((byte) 12, "法大大合同签署异常"),
	
	UPDATE_TC_ORDER_STATUS((byte) 13, "更新交易中心订单状态异常"),

	BORROWER_INVESTOR_REPAYMENT_PLAN((byte) 14, "还款回款计划异常"),
	
	DUE_IN_MONEY_TOTAL((byte) 15, "待收金额统计异常"),

	INVEST_RANK_NOTIFY((byte) 16, "投资排行榜通知异常");

	private final byte value;
	private final String desc;

	public static ProjectLendAbnormityNodeEnum enumOf(byte value) {
		for (ProjectLendAbnormityNodeEnum abnormityNode : values()) {
			if (abnormityNode.value == value) {
				return abnormityNode;
			}
		}
		throw new NoSuchEnumValueException("ProjectLendAbnormityNodeEnum:" + value);
	}
}
